//
//  MYShopDetailsCommentCell.swift
//  MuYing
//
//  Created by tbb on 2019/7/29.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class MYShopDetailsCommentCell: YQTableViewBaseCell {
    
    @objc var commentModel:MYNewsShopDetailsCommentModel?  {
        didSet {
            self.userHeaerIcon.setHighlightedImageWith(URL(string: self.commentModel?.headImage ?? ""), placeholder: nil);
            self.userNameLb.text = commentModel?.username;
            self.timeLb.text = self.commentModel?.createTimeStr
            self.colorLb.text = "";//self.commentModel?.createTimeStr
            self.contentLb.text = self.commentModel?.content;
        }
    }

    @objc @IBOutlet weak var userHeaerIcon: UIImageView!
    @objc @IBOutlet weak var userNameLb: UILabel!
    @objc @IBOutlet weak var timeLb: UILabel!
    @objc @IBOutlet weak var colorLb: UILabel!
    
    @objc @IBOutlet weak var contentLb: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        self.userHeaerIcon.layer.cornerRadius = 14;
        self.userHeaerIcon.clipsToBounds = true;
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
